package org.wei.p2p.account.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wei
 * @date 2022/4/21 10:24
 */
@Configuration
public class SpringDocConfig {
    @Bean
    public OpenAPI accountOpenApi() {
        return new OpenAPI().info(new Info().title("统一账户服务 API")
                .description("统一账户服务接口文档")
                .version("v1.0.0")
                .contact(new Contact()
                        .name("wei")
                        .email("1951247045@qq.com")));
    }
}
